package cn.kk.controller;

import cn.kk.base.model.BaseController;
import cn.kk.base.model.Result;
import cn.kk.service.UserInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author: kk
 * @Date: 2022/11/14  22:41
 * @Version 1.0
 */
@RequestMapping("/user/info")
@RestController
@Tag(name = "用户信息服务-api")
public class UserInfoController extends BaseController {

    @Resource
    private UserInfoService userInfoService;

    @Operation(summary = "用户列表")
    @GetMapping("/list")
    public Result<Object> list() {
        return success(userInfoService.list());
    }

}
